package com.kk.mapper;

import com.kk.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper {
    @Select("SELECT * FROM user WHERE user_code = #{userCode}")
    User findByUserCode(String userCode);
    
    @Select("SELECT * FROM user WHERE id = #{id}")
    User findById(Long id);
} 